package com.blog.service.adminannouncement;

import java.sql.Date;
import java.util.List;

import com.blog.dao.adminannouncement.AdminNoticeDao;
import com.blog.dao.conn.ParamSet;
import com.blog.entity.NoticeEntity;

public class AdminNoticeService {

	AdminNoticeDao dao = new AdminNoticeDao();
	
	/**
	 * 删除公告,草稿箱公告,根据状态分类公告
	 */
	public List<NoticeEntity> queryAllNoticeByTypes(int status) {
		return dao.queryAllNoticeByTypes(status);
	}
	
	
	
	/**
	 * 所有公告里面根据日期查询公告
	 */
	public List<NoticeEntity> queryNoticeByTime(String onedate,String twodate,int flag) {
		return dao.queryNoticeByTime(onedate, twodate,flag);
	}
	
	/**
	 * 所有公告里面模糊查询公告
	 */
	public List<NoticeEntity> queryNoticeByInput(String str,int flag) {
		return dao.queryNoticeByInput(str,flag);
	}
	
	/**
	 * 添加公告
	 */
	public int addNotice(NoticeEntity notice) {
		return dao.addNotice(notice);
		
	}
}
